package com.itheima.Factory;

import com.itheima.dao.TeacherDao;
import com.itheima.dao.impl.TeacherDaoimpl;
import org.springframework.beans.factory.FactoryBean;

public class TeacherDaoFactory implements FactoryBean<TeacherDao> {
    @Override
    public TeacherDao getObject() throws Exception {
        System.out.println("我是TeacherDao的工厂实现");
        return new TeacherDaoimpl();
    }

    @Override
    public Class<?> getObjectType() {
        return TeacherDao.class;
    }
}
